3.31.56 \(\int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx\) [3056]

3.31.56.1 Optimal result
3.31.56.2 Mathematica [A] (verified)
3.31.56.3 Rubi [A] (warning: unable to verify)
3.31.56.4 Maple [B] (verified)
3.31.56.5 Fricas [F(-1)]
3.31.56.6 Sympy [F]
3.31.56.7 Maxima [F]
3.31.56.8 Giac [F(-2)]
3.31.56.9 Mupad [F(-1)]

3.31.56.1 Optimal result

Integrand size = 26, antiderivative size = 145 \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=-2 \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}+2 \sqrt {a} \text {arctanh}\left (\frac {2 a+b \sqrt {\frac {d}{x}}}{2 \sqrt {a} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )-\frac {b \sqrt {d} \text {arctanh}\left (\frac {b d+2 c \sqrt {\frac {d}{x}}}{2 \sqrt {c} \sqrt {d} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}\right )}{\sqrt {c}} \]

output
2*arctanh(1/2*(2*a+b*(d/x)^(1/2))/a^(1/2)/(a+c/x+b*(d/x)^(1/2))^(1/2))*a^( 
1/2)-b*arctanh(1/2*(b*d+2*c*(d/x)^(1/2))/c^(1/2)/d^(1/2)/(a+c/x+b*(d/x)^(1 
/2))^(1/2))*d^(1/2)/c^(1/2)-2*(a+c/x+b*(d/x)^(1/2))^(1/2)
 
3.31.56.2 Mathematica [A] (verified)

Time = 0.61 (sec) , antiderivative size = 213, normalized size of antiderivative = 1.47 \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} \left (-2 \sqrt {c} \sqrt {\frac {d \left (c+a x+b \sqrt {\frac {d}{x}} x\right )}{x}}+4 \sqrt {a} \sqrt {c} \sqrt {d} \text {arctanh}\left (\frac {-\sqrt {c} \sqrt {\frac {d}{x}}+\sqrt {\frac {d \left (c+a x+b \sqrt {\frac {d}{x}} x\right )}{x}}}{\sqrt {a} \sqrt {d}}\right )+b d \log \left (b d+2 c \sqrt {\frac {d}{x}}-2 \sqrt {c} \sqrt {\frac {d \left (c+a x+b \sqrt {\frac {d}{x}} x\right )}{x}}\right )\right )}{\sqrt {c} \sqrt {\frac {d \left (c+\left (a+b \sqrt {\frac {d}{x}}\right ) x\right )}{x}}} \]

input
Integrate[Sqrt[a + b*Sqrt[d/x] + c/x]/x,x]
 
output
(Sqrt[a + b*Sqrt[d/x] + c/x]*(-2*Sqrt[c]*Sqrt[(d*(c + a*x + b*Sqrt[d/x]*x) 
)/x] + 4*Sqrt[a]*Sqrt[c]*Sqrt[d]*ArcTanh[(-(Sqrt[c]*Sqrt[d/x]) + Sqrt[(d*( 
c + a*x + b*Sqrt[d/x]*x))/x])/(Sqrt[a]*Sqrt[d])] + b*d*Log[b*d + 2*c*Sqrt[ 
d/x] - 2*Sqrt[c]*Sqrt[(d*(c + a*x + b*Sqrt[d/x]*x))/x]]))/(Sqrt[c]*Sqrt[(d 
*(c + (a + b*Sqrt[d/x])*x))/x])
 
3.31.56.3 Rubi [A] (warning: unable to verify)

Time = 0.39 (sec) , antiderivative size = 116, normalized size of antiderivative = 0.80, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {2066, 1693, 1162, 25, 1269, 1092, 219, 1154, 219}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx\)

\(\Big \downarrow \) 2066

\(\displaystyle -\int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}} x}{d}d\frac {d}{x}\)

\(\Big \downarrow \) 1693

\(\displaystyle -2 \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}} x}{d}d\sqrt {\frac {d}{x}}\)

\(\Big \downarrow \) 1162

\(\displaystyle -2 \left (\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}-\frac {1}{2} \int -\frac {\left (2 a+b \sqrt {\frac {d}{x}}\right ) x}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}\right )\)

\(\Big \downarrow \) 25

\(\displaystyle -2 \left (\frac {1}{2} \int \frac {\left (2 a+b \sqrt {\frac {d}{x}}\right ) x}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

\(\Big \downarrow \) 1269

\(\displaystyle -2 \left (\frac {1}{2} \left (b \int \frac {1}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}+2 a \int \frac {x}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}\right )+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

\(\Big \downarrow \) 1092

\(\displaystyle -2 \left (\frac {1}{2} \left (2 b \int \frac {1}{\frac {4 c}{d}-\frac {d^2}{x^2}}d\frac {2 \sqrt {\frac {d}{x}} c+b d}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}+2 a \int \frac {x}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}\right )+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

\(\Big \downarrow \) 219

\(\displaystyle -2 \left (\frac {1}{2} \left (2 a \int \frac {x}{d \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}d\sqrt {\frac {d}{x}}+\frac {b \sqrt {d} \text {arctanh}\left (\frac {d^{3/2}}{2 \sqrt {c} x}\right )}{\sqrt {c}}\right )+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

\(\Big \downarrow \) 1154

\(\displaystyle -2 \left (\frac {1}{2} \left (\frac {b \sqrt {d} \text {arctanh}\left (\frac {d^{3/2}}{2 \sqrt {c} x}\right )}{\sqrt {c}}-4 a \int \frac {1}{4 a-\frac {d^2}{x^2}}d\frac {2 a+b \sqrt {\frac {d}{x}}}{\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}\right )+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

\(\Big \downarrow \) 219

\(\displaystyle -2 \left (\frac {1}{2} \left (\frac {b \sqrt {d} \text {arctanh}\left (\frac {d^{3/2}}{2 \sqrt {c} x}\right )}{\sqrt {c}}-2 \sqrt {a} \text {arctanh}\left (\frac {2 a+b \sqrt {\frac {d}{x}}}{2 \sqrt {a} \sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}}\right )\right )+\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c d}{x^2}}\right )\)

input
Int[Sqrt[a + b*Sqrt[d/x] + c/x]/x,x]
 
output
-2*(Sqrt[a + b*Sqrt[d/x] + (c*d)/x^2] + (-2*Sqrt[a]*ArcTanh[(2*a + b*Sqrt[ 
d/x])/(2*Sqrt[a]*Sqrt[a + b*Sqrt[d/x] + (c*d)/x^2])] + (b*Sqrt[d]*ArcTanh[ 
d^(3/2)/(2*Sqrt[c]*x)])/Sqrt[c])/2)
 

3.31.56.3.1 Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 219
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* 
ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt 
Q[a, 0] || LtQ[b, 0])
 

rule 1092
Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Simp[2   Subst[I 
nt[1/(4*c - x^2), x], x, (b + 2*c*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a 
, b, c}, x]
 

rule 1154
Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Sym 
bol] :> Simp[-2   Subst[Int[1/(4*c*d^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, ( 
2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c 
, d, e}, x]
 

rule 1162
Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_S 
ymbol] :> Simp[(d + e*x)^(m + 1)*((a + b*x + c*x^2)^p/(e*(m + 2*p + 1))), x 
] - Simp[p/(e*(m + 2*p + 1))   Int[(d + e*x)^m*Simp[b*d - 2*a*e + (2*c*d - 
b*e)*x, x]*(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x 
] && GtQ[p, 0] && NeQ[m + 2*p + 1, 0] && ( !RationalQ[m] || LtQ[m, 1]) && 
!ILtQ[m + 2*p, 0] && IntQuadraticQ[a, b, c, d, e, m, p, x]
 

rule 1269
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c 
_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[g/e   Int[(d + e*x)^(m + 1)*(a + b*x + 
 c*x^2)^p, x], x] + Simp[(e*f - d*g)/e   Int[(d + e*x)^m*(a + b*x + c*x^2)^ 
p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] &&  !IGtQ[m, 0]
 

rule 1693
Int[(x_)^(m_.)*((a_) + (c_.)*(x_)^(n2_.) + (b_.)*(x_)^(n_))^(p_.), x_Symbol 
] :> Simp[1/n   Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*x + c*x^2)^p, 
x], x, x^n], x] /; FreeQ[{a, b, c, m, n, p}, x] && EqQ[n2, 2*n] && IntegerQ 
[Simplify[(m + 1)/n]]
 

rule 2066
Int[(x_)^(m_.)*((a_) + (b_.)*((d_.)/(x_))^(n_) + (c_.)*(x_)^(n2_.))^(p_), x 
_Symbol] :> Simp[-d^(m + 1)   Subst[Int[(a + b*x^n + (c/d^(2*n))*x^(2*n))^p 
/x^(m + 2), x], x, d/x], x] /; FreeQ[{a, b, c, d, n, p}, x] && EqQ[n2, -2*n 
] && IntegerQ[2*n] && IntegerQ[m]
 
3.31.56.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(236\) vs. \(2(113)=226\).

Time = 0.25 (sec) , antiderivative size = 237, normalized size of antiderivative = 1.63

method result size
default \(-\frac {\sqrt {\frac {b \sqrt {\frac {d}{x}}\, x +a x +c}{x}}\, \left (\ln \left (\frac {2 c +b \sqrt {\frac {d}{x}}\, x +2 \sqrt {c}\, \sqrt {b \sqrt {\frac {d}{x}}\, x +a x +c}}{\sqrt {x}}\right ) \sqrt {c}\, a^{\frac {3}{2}} \sqrt {\frac {d}{x}}\, x b -2 \sqrt {b \sqrt {\frac {d}{x}}\, x +a x +c}\, a^{\frac {5}{2}} x -2 \sqrt {b \sqrt {\frac {d}{x}}\, x +a x +c}\, a^{\frac {3}{2}} \sqrt {\frac {d}{x}}\, x b +2 \left (b \sqrt {\frac {d}{x}}\, x +a x +c \right )^{\frac {3}{2}} a^{\frac {3}{2}}-2 \ln \left (\frac {\sqrt {\frac {d}{x}}\, \sqrt {x}\, b +2 \sqrt {b \sqrt {\frac {d}{x}}\, x +a x +c}\, \sqrt {a}+2 a \sqrt {x}}{2 \sqrt {a}}\right ) a^{2} c \sqrt {x}\right )}{\sqrt {b \sqrt {\frac {d}{x}}\, x +a x +c}\, c \,a^{\frac {3}{2}}}\) \(237\)

input
int((a+c/x+b*(d/x)^(1/2))^(1/2)/x,x,method=_RETURNVERBOSE)
 
output
-((b*(d/x)^(1/2)*x+a*x+c)/x)^(1/2)*(ln((2*c+b*(d/x)^(1/2)*x+2*c^(1/2)*(b*( 
d/x)^(1/2)*x+a*x+c)^(1/2))/x^(1/2))*c^(1/2)*a^(3/2)*(d/x)^(1/2)*x*b-2*(b*( 
d/x)^(1/2)*x+a*x+c)^(1/2)*a^(5/2)*x-2*(b*(d/x)^(1/2)*x+a*x+c)^(1/2)*a^(3/2 
)*(d/x)^(1/2)*x*b+2*(b*(d/x)^(1/2)*x+a*x+c)^(3/2)*a^(3/2)-2*ln(1/2*((d/x)^ 
(1/2)*x^(1/2)*b+2*(b*(d/x)^(1/2)*x+a*x+c)^(1/2)*a^(1/2)+2*a*x^(1/2))/a^(1/ 
2))*a^2*c*x^(1/2))/(b*(d/x)^(1/2)*x+a*x+c)^(1/2)/c/a^(3/2)
 
3.31.56.5 Fricas [F(-1)]

Timed out. \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\text {Timed out} \]

input
integrate((a+c/x+b*(d/x)^(1/2))^(1/2)/x,x, algorithm="fricas")
 
output
Timed out
 
3.31.56.6 Sympy [F]

\[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\int \frac {\sqrt {a + b \sqrt {\frac {d}{x}} + \frac {c}{x}}}{x}\, dx \]

input
integrate((a+c/x+b*(d/x)**(1/2))**(1/2)/x,x)
 
output
Integral(sqrt(a + b*sqrt(d/x) + c/x)/x, x)
 
3.31.56.7 Maxima [F]

\[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\int { \frac {\sqrt {b \sqrt {\frac {d}{x}} + a + \frac {c}{x}}}{x} \,d x } \]

input
integrate((a+c/x+b*(d/x)^(1/2))^(1/2)/x,x, algorithm="maxima")
 
output
integrate(sqrt(b*sqrt(d/x) + a + c/x)/x, x)
 
3.31.56.8 Giac [F(-2)]

Exception generated. \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\text {Exception raised: TypeError} \]

input
integrate((a+c/x+b*(d/x)^(1/2))^(1/2)/x,x, algorithm="giac")
 
output
Exception raised: TypeError >> an error occurred running a Giac command:IN 
PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Limit: Max order reached or unable 
to make series expansion Error: Bad Argument Value
 
3.31.56.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\sqrt {a+b \sqrt {\frac {d}{x}}+\frac {c}{x}}}{x} \, dx=\int \frac {\sqrt {a+\frac {c}{x}+b\,\sqrt {\frac {d}{x}}}}{x} \,d x \]

input
int((a + c/x + b*(d/x)^(1/2))^(1/2)/x,x)
 
output
int((a + c/x + b*(d/x)^(1/2))^(1/2)/x, x)